package org.nature.framework;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;

public class DemoShire {
	public static void main(String[] args) {
		Subject subject = SecurityUtils.getSubject();
		UsernamePasswordToken token = new UsernamePasswordToken();
		token.setUsername("admin");
		token.setPassword("123456".toCharArray());
		subject.login(token);
	}
}
